package com.brambila.clickable;

public class ItensQuantity {

	private String flags_Quantity = "";
	private String signal_Quantity = "";
	private String removeBomb_Quantity = "";

	private ItensQuantity(String flags, String removeBomb, String signal) {

		this.flags_Quantity = flags;
		this.removeBomb_Quantity = removeBomb;
		this.signal_Quantity = signal;
	}

	public static ItensQuantity instance = null;

	public static ItensQuantity getInsance(String flags, String removeBomb, String signal) {

		if (instance == null) {
			instance = new ItensQuantity(flags, removeBomb, signal);
		}

		return instance;
	}

	public static ItensQuantity getInstance() {
		return instance;
	}

	public String getFlags_Quantity() {
		return flags_Quantity;
	}

	public String getSignal_Quantity() {
		return signal_Quantity;
	}

	public String getRemoveBomb_Quantity() {
		return removeBomb_Quantity;
	}

	public void setRemoveBomb_Quantity(int removeBomb_Quantity) {
		int n = Integer.valueOf(this.removeBomb_Quantity);
		n -= removeBomb_Quantity;
		this.removeBomb_Quantity = String.valueOf(n);
	}

	public void setSignal_Quantity(int signal_Quantity) {
		int n = Integer.valueOf(this.signal_Quantity);
		n -= signal_Quantity;
		this.signal_Quantity = String.valueOf(n);
	}

	public void setFlags_Quantity(int flags_Quantity) {
		int n = Integer.valueOf(this.flags_Quantity);
		n -= flags_Quantity;
		this.flags_Quantity = String.valueOf(n);
	}
}